//
//  StaffLogic.h
//  QRMaster
//
//  Created by myApple on 15/12/21.
//  Copyright (c) 2015年 myApple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GuestModel.h"


@interface GuestLogic : NSObject

/**
 *  插入客户信息
 *
 *  @param model       客户model
 *  @param communityId 集群ID号
 */
-(void)insertStaffData:(GuestModel *)model withCommuntiyId:(NSString *)communityId;

/**
 *  模型转化为字典
 *
 *  @param communityId 集群ID
 *
 *  @param guestId     客户ID
 */
-(void)deleteGuestInfo:(NSString *)guestId withCommunityId:(NSString *)communityId;

/**
 *  模型转化为字典
 *
 *  @param communityId 集群ID
 *
 *  @param guestId     客户ID
 *
 *  @param dic         客户需要更新的键值对
 */
-(void)updateGuestInfo:(NSString *)guestId communityId:(NSString *)communityId dic:(NSMutableDictionary *)dic;

/**
 *  根据集群id删除该集群下客户信息
 *
 *  @param communityId 集群ID
 *
 */
-(void)deleteGuestInfo:(NSString *)communityId;

typedef void(^arrBlock)(NSMutableArray * arr);

/**
 *  根据集群id查询该集群下客户信息
 *
 *  @param communityId 集群ID
 *  @param arrBlock    接收数组
 */
-(void)queryGuestInfo:(NSString *)communityId block:(arrBlock)arrBlock;
@end
